WEBAPP['pageDj'] = function() {
	$('#djSongLists').on('click touch', '.more-dj-songs', function() {
		$('#moreSongs').text('Loading...');
		$.post($(this).attr('href'), {
			ajax : 1
		}, function(html) {
			$('#moreSongs').after(html).remove();
		});

		return false;
	}).on('click touch', '.dj-song', function() {
		$('#topSpace').load($(this).attr('href') + ' #songPlayer', {
			ajax : 1
		}, function() {
			WEBAPP['pageDjSong']();
		});
		return false;
	});
};

WEBAPP['pageDjUnload'] = function() {
	$('#djSongLists').off('click touch', '.more-dj-songs');
};

WEBAPP['pageDjSong'] = function() {
	$("#jquery_jplayer_1").jPlayer({
		ready : function() {
			$(this).jPlayer("setMedia", {
				// title : "Nghe nhạc",
				m4a : $('#songPlayer').attr('stream')
			}).jPlayer("play");
		},
		swfPath : "http://cdn.bum.vn/lib/jplayer/js/Jplayer.swf",
		solution : "flash, html",
		supplied : "m4a",
		preload : "none",
		wmode : "window",
		volume : 1,
		loop : true,
		smoothPlayBar : true,
		keyEnabled : false
	});
};